import request from "../utils/request";


// 登录
export const apiLogin = (data) => {
    return request({
        url: '/api/login',
        method: 'post',
        data
    })
}

// 获取用户信息
export const apigetUserInfo = () => {
    return request({
        url: '/api/getUserInfo'
    })
}

// 添加身份id
export const apiAddUserIds = (data) => {
    return request({
        url: '/api/addUserIds',
        method: 'post',
        data
    })
}

// 获取身份列表
export const apigetUserIdsList = () => {
    return request({
        url: '/api/getUserIdsList'
    })
}

// 添加用户
export const apigetAddUser = (data) => {
    return request({
        url: '/api/getAddUser',
        method: 'post',
        data
    })
}

// 获取验证码
export const apigetCode = (data) => {
    return request({
        url: '/api/getCode',
        method: 'post',
        data
    })
}


// 获取用户列表
export const apigetList = () => {
    return request({
        url: '/api/getList'
    })
}